README
REPLICATION CODE FOR:

Immigration and Support for Redistribution:
Lessons from Europe. Journal of Economic Literature 


AUTHORS: 
Charlotte Cavaille, Ford School of Public Policy, University of Michigan
Karine Van Der Straeten, Toulouse School of Economics and Institute for Advanced Study in Toulouse

CONTACT: Charlotte.cavaille@gmail.com

VERSION: February 2023
DOI: https://doi.org/10.7910/DVN/6WTDRH

	
SOFTWARE and PROGRAMS

Analyses were conducted using STATA SE version 17.
Processor: 2.3 GHz 8-Core Intel Core i9
RAM: 32.0 GB
System type: 64-bit


Some auxiliary programs are needed to replicate some results. Full instructions are located in the relevant scripts. We would like to call your attention to the need to:

	net install polychoric, from("https://staskolenikov.net/stata")
	increase maxvar



STRUCTURE OF REPLICATION FILES

	DATASET CONSTRUCTION. Provides the code to build datafiles used in both the main paper and the appendix
		Rep_datasets.do	

	REPLICATION MAIN. Provides the replication code for the tables, figures and inline numbers mentioned in the main manuscript.
		Main_Rep_JEL.do

	REPLICATION APPENDIX. Provides the replication code for the tables, figures mentioned in the appendix.
		Appendix_rep_JEL.do
		Income_bsas.do 

	Please note that Table F1 in the appendix is not computational and is consequently not included in the replication file

	CONFIGURATION FILE. Provides missing package
		Config.do
		

	
	

DATA

This folder does NOT contain the datasets needed to replicate the results in the article and its appendix. All datasets used in the main paper and appendix are publicly available and can be downloaded after registration. Authors have legitimate access to and permission to use the data used in this manuscript.

Rep_datasets.do	outputs 6 different datasets:

ESS_selected_waves.dta (not provided)
BES_panelW2.dta (not provided)
CREDOC79_20.dta (not provided)
DREES00_15.dta (not provided)
BSAS83_17.dta (not provided)
ISSP_RofG85_16.dta (not provided)
 
For each, we describe where to find the original data. Please download the datasets and place them in the same data folder. Note that we have tried to use the same file names as the ones used by the original data providers. These names, however, can change with new data released. If necessary, rename them per the terminology found in Rep_datasets.do 


1) ESS_selected_waves.dta

This datafile combines 4 rounds of the European Social Survey, round 1, round 4, round 7 and round 8.

Data is subject to a redistribution restriction, but can be freely downloaded from the ESS website after a straightforward registration. To generate the datafile, go to https://www.europeansocialsurvey.org/data/  and download each round separately. 

Use Rep_datsets.do to combine the rounds and generate SS_selected_waves.dta 

References:
European Social Survey, Round 1 Data. 2002. Datafile edition 6.6. Sikt - Norwegian Agency for Shared Services in Education and Research, Norway – Data Archive and distributor of ESS data for ESS ERIC. http://dx.doi.org/10.21338/NSD-ESS1-2002.
European Social Survey, Round 4 Data. 2008. Datafile edition 4.5. Sikt - Norwegian Agency for Shared Services in Education and Research, Norway – Data Archive and distributor of ESS data for ESS ERIC. http://dx.doi.org/10.21338/NSD-ESS4-2008.
European Social Survey, Round 7 Data. 2014. Datafile edition 2.2. Sikt - Norwegian Agency for Shared Services in Education and Research, Norway – Data Archive and distributor of ESS data for ESS ERIC. http://dx.doi.org/10.21338/NSD-ESS7-2014.


2) BES_panelW2.dta 

This datafile is constructed using the British Election Study, Internet Panel, Wave 2.

Data is subject to a redistribution restriction, but can be freely downloaded from the BES website after a straightforward registration. To generate the datafile, go to https://www.britishelectionstudy.com/data-objects/panel-study-data/ and download the full panel datafile BES2019_W21_Panel_v21.0.

Use Rep_datsets.do to generate BES_panelW2.dta. 

Reference:
Fieldhouse, Edward, Jane Green, Goeffrey Evans, Hermann Schmitt, Cees van der Eijk and James Mellon. 2014. Release version 6.9. British Election Study Internet Panel Wave 2. http://dx. doi.org/10.5255/UKDA-SN-8202-2.


3) CREDOC79_20.dta

This datafile is constructed using the Conditions and Aspirations de Vie survey, made available by LE CREDOC.  

Data is subject to a redistribution restriction, but can be freely downloaded from the Quetelet website after a straightforward application. Look for the datafile on https://data.progedo.fr using reference “lil-1431  Conditions de vie et aspirations - 1979-2020.” Apply for the data. You will receive a PDF to sign. Sign and send it back. After a few days, the datafile will be available for download through your Quetelet account.

Use Rep_datsets.do to generate CREDOC79_20.dta

Reference:
Conditions de vie et aspirations, 1979-2020. Credoc [producteur]. ADISP [diffuseur].


4) DREES00_15.dta

This datafile is constructed using the Barometre d’Opinion de la DREES.

Data is subject to a redistribution restriction, but can be freely downloaded from the Quetelet website after a straightforward application. Look for the datafile on https://data.progedo.fr using reference “lil-1332 Baromètre d'opinion de la DREES –2018.” Apply for the data. You will receive a PDF to sign. Sign and send it back. After a few days, the datafile will be available for download through your Quetelet account.

Use Rep_datsets.do to generate DREES00_15.dta

Reference:
DREES, Barometre d’opinion. N.d. Drees [producteur]. ADISP [diffuseur]. 


5) BSAS83_17.dta

This datafile combines all rounds of the British Social Attitudes Survey, longitudinal data. 

Data is subject to a redistribution restriction. To access the full data, researchers need to register on the UK data service portal (https://ukdataservice.ac.uk). Each application is vetted and take a few days to be approved. Once application is approve each wave of the BSAS can be downloaded through the portal. Note that waves are available separately and need to be combined into a single longitudinal dataset.


Rep_datsets.do provides the code to combine files. A separate do file (income_bsas.do) details how to compute the income variable used for Figure B.3 in the Appendix. 

Reference:
British Social Attitudes Survey, longitudinal survey. N.d. Cumulative file compiled by the authors NatCen Social Research [data collection]. UK Data Service [distributor]. https:// ukdataservice.ac.uk.


6) ISSP_RofG85_16.dta.dta

This datafile combines all rounds of the ISSP, Role of Government Module (5 waves in total). 

Data is subject to a redistribution restriction. To access the full data, researchers need to register on the GESIS data service portal (https://www.gesis.org/en/issp/home). Each application is vetted and take a few days to be approved. Once application is approve each wave of the Role of Government module can be downloaded through the portal. Note that waves 1 through 4 are available as a cumulative file. This file needs to be combined with wave 5. 

Use Rep_datsets.do to generate ISSP_RofG85_16.dta.dta

Reference:
ISSP, Research Group. 1986. “International Social Survey Programme: Role of Government I - ISSP 1985.” GESIS Data Archive, Cologne. ZA1490 Data file Version 1.0.0, https://doi.org/10.4232/1.1490.
ISSP, Research Group. 1992. “International Social Survey Programme: Role of Government II - ISSP 1990.” GESIS Data Archive, Cologne. ZA1950 Data file Version 1.0.0, https://doi.org/10.4232/1.1950.
ISSP, Research Group. 1999. “International Social Survey Programme: Role of Government III - ISSP 1996.” GESIS Data Archive, Cologne. ZA2900 Data file Version 1.0.0, https://doi.org/10.4232/1.2900.
ISSP, Research Group. 2018. “International Social Survey Programme: Role of Government V - ISSP 2016.” GESIS Data Archive, Cologne. ZA6900 Data file Version 2.0.0, https://doi.org/10.4232/1.13052.
ISSP, Research Group. 2021. “International Social Survey Programme: Role of Government IV - ISSP 2006.” GESIS Data Archive, Cologne. ZA4700 Data file Version 2.0.0, https://doi.org/10.4232/1.13707.


	
END README